import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入一个字符串：");
        String s1 = scanner.nextLine();
        //测试字符串逆置方法
        String s1Inverse = StringUtil.inverseAndConvert(s1);
        System.out.println("逆置并大小写转换后的结果为：" + s1Inverse);

        System.out.println("请输入原字符串：");
        String s2 = scanner.nextLine();
        System.out.println("请输入子字符串：");
        String s3 = scanner.nextLine();
        //测试字符串统计方法
        int cnt = StringUtil.statistic(s2, s3);
        System.out.println("子串在原串中出现的次数为：" + cnt);
    }
}
